<template>
  <div id="app">
    <Header></Header>
    <!-- 路由出口 -->
    <router-view></router-view>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  components: {
    Header,
    Footer,
  },
  mounted() {
    // 通知 vuex 发请求，获取数据，存储到仓库中 || 获取商品列表数据
    this.$store.dispatch('CategoryList')
  },
}
</script>

<style>
</style>
